<!-- 核销题目 -->
<template>
	<view class="page">
		<view class="main">
			<view class="flex align-center justify-between bg-white radius-lg padding margin-top" v-for="item in 3"
				:key="item" @click="handleWriteOffClick(item)">
				<view class="flex-1">
					<u-text text="张同学" size="32rpx" color="#333" bold></u-text>
				</view>
				<view class="flex-1">
					<u-text :text="item == 1 ? '已核销' : '待核销'" size="24rpx" :color="item == 1 ? '#0060E6' : '#FF5252'"
						bold></u-text>
				</view>
				<view>
					<u-icon name="arrow-right" color="#999" size="16"></u-icon>
				</view>
			</view>
		</view>
	</view>
</template>
<script setup>
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';

const studentList = ref([
	{
		name: '张三',
		status: 1,
	},
	{
		name: '张三',
		status: 2
	},
])

const handleWriteOffClick = (item) => {
	console.log(item)
	uni.navigateTo({
		url: `/pages/common/writeOffExercise/index`
	})
}

onLoad((options) => {
	uni.setNavigationBarTitle({
		title: '周末班：一年级·数学（A）班'
	})
})
</script>
<style scoped lang="scss">
.popup-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 30rpx 40rpx;
	background: white;
	border-bottom: solid 1px #eee;
}
</style>